﻿@model IEnumerable<SGC_CarteraClientes.Models.CA_EMPRESA>

@{
    ViewBag.Title = "Index";
}

<h2>Entidades Afiliadas</h2>
@if (TempData["message"] != null && TempData["message"].ToString().Trim()!="")
{
@Html.Raw(TempData["message"].ToString())
//@TempData["message"] = null;
} 
<hr />
<p>
    @Html.ActionLink("Nueva Entidad", "Create")
     @Html.ActionLink("Volver", "../")   
</p>
<table class="tblSort">
    <thead>
    <tr>
        <th>
            ID Empresa
        </th>
        <th>
           Nombres o Razón Social
        </th>
        <th>
           RUC
        </th>
       
        <th></th>
    </tr>
        </thead>
    <tbody>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.EMPR_ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EMPR_DESC)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EMPR_RUC)
        </td>
       
        <td>
            @Html.ActionLink("Modificar", "Edit", new { id=item.EMPR_ID }) |
            @* Html.ActionLink("Details", "Details", new { id=item.EMPR_ID }) | *@
            @Html.ActionLink("Eliminar", "Delete", new {  id=item.EMPR_ID })
        </td>
    </tr>
}
        </tbody>
</table>
